#ifndef ACCOUNTMANAGER_H
#define ACCOUNTMANAGER_H

#include <QObject>
#include <QMap>
#include "proto-xmpp-core/xmppclient.h"
#include <gloox/jid.h>


class AccountManager : public QObject
{
    Q_OBJECT
    QMap<gloox::JID, XMPPClient*> accounts;
public:
    explicit AccountManager(QObject *parent = 0);

    void addAccount(XMPPClient *client);
    bool removeAccount(gloox::JID jid);
    bool removeAccount(XMPPClient *client);
    XMPPClient* findAccount(gloox::JID jid);

    void disconnectAll();
signals:

public slots:

};

#endif // ACCOUNTMANAGER_H
